import request from '@/utils/request'

const api = {
  getWmsProductPageUrl: '/wms_product/get_wms_product_page',
  addWmsProductUrl: '/wms_product/add_wms_product',
}

export async function addWmsProductApi(params: Map<string, any>) {
  const res = await request({
    url: api.addWmsProductUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function getWmsProductPageApi(params: Map<string, any>) {
  const res = await request({
    url: api.getWmsProductPageUrl,
    method: 'post',
    data: params,
  })
  return res
}
